<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="../Public/Css/public.css" />
</head>

<body>
	<table class="table">
		<tr>
			<th>ID</th>
			<th>角色名称</th>
			<th>角色描述</th>
			<th>开启状态</th>
			<th>操作</th>
		</tr>

		<foreach name='role' item='v'>
			<tr>
				<td>{$v.id}</td>
				<td>{$v.name}</td>
				<td>{$v.remark}</td>
				<td>
					<!-- condition条件里面不能用点语法，要用原生的数组的输出方法 -->
					<if condition='$v["status"]'>开启<else/>关闭</if>
				</td>
				<td>
					<a href="{:U('Admin/Rbac/access', array('rid' => $v['id']))}">配置权限</a>
				</td>
			</tr>
		</foreach>

	</table>
</body>
</html>
